﻿using Customer.Domain.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WMSpublic;

namespace Customer.Domain
{
    /// <summary>
    /// 客户表
    /// </summary>
    public class Client: Audit
    {
        /// <summary>
        /// 客户id
        /// </summary>
        [Key]
        public int ClientId { get; set; }
        /// <summary>
        /// 客户编号
        /// </summary>
        public string? ClientCode { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 传真
        /// </summary>
        public string? Cfax { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Landline { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Mailbox { get; set; }
        /// <summary>
        /// 客户联系人id
        /// </summary>
        public int CusContactId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Cremark { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
    }
    /// <summary>
    /// 客户分页
    /// </summary>
    public class Clientpage
    {
        /// <summary>
        /// 总条数
        /// </summary>
        public int listcount { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int pagecount { get; set; }
        public List<ClientDto> list { get; set; }
    }
}
